{extends file="$templateDir/layout/member/layout.tpl"}
{block name=body}
  <div class="container">
      <div class="member_title">
          <div class="member_title_left">会员绑定微信</div>
          <div class="member_title_right"></div>
      </div>
      <div class="member_edit">
        <form method="post" id="frmedit">
          <div class="member_edit_li">
              <div class="member_edit_lable">姓名：</div>
              <div class="member_edit_ipt"><input type="text" name="realname" id="realname" class="ipt" ></div>
          </div>
          <div class="member_edit_li">
              <div class="member_edit_lable">性别：</div>
              <div class="member_edit_ipt">
                  <select name="gender" class="ipt" id="gender">
                      <option value="1" >男</option>
                      <option value="2" >女</option>
                  </select>
              </div>
          </div>
          <div class="member_edit_li">
              <div class="member_edit_lable">生日：</div>
              <div class="member_edit_ipt">
                  <select id="tYEAR" name="tyear" size="1" onChange="createSelect()">
                      <option value="0">年</option>
                  </select>
                  <select id="tMON" name="tmon" size="1" onChange="createSelect()">
                      <option value="0">月</option>
                  </select>
                  <select id="tDAY" name="tday" size="1">
                      <option value="0">日</option>
                  </select>
                  <script type="text/javascript">
                      createSelect(1);
                      $("#tYEAR option[value='{$tyear}']").attr("selected", true);
                      $("#tMON option[value='{$tmon}']").attr("selected", true);
                      createSelect();
                      $("#tDAY option[value='{$tday}']").attr("selected", true);
                  </script> 
              </div>
          </div>
          <div class="member_edit_li">
              <div class="member_edit_lable">手机：</div>
              <div class="member_edit_ipt"><input type="text" name="mobile" id="mobile" class="ipt" ></div>
          </div>
          <div class="member_edit_li">
              <div class="member_edit_lable">验证码：</div>
              <div class="member_edit_ipt">
                <input type="text" name="code" id="code" class="iptcode" >
                <input type="button" value="获取验证码" class="sendcode">
              </div>
          </div>
          <div class="member_edit_li">
              <div class="weixin_api_submit">提交</div>
          </div>
        </form>
      </div>
  </div>
{/block}
